<template>
  <div class="home-container">
    <header class="header-box">
      <h1>项目展示</h1>
      <small>一些项目展示</small>
    </header>
    <div class="content-box">
      <a-row :gutter="[16, 16]">
        <a-col :span="12">
          <div class="project-card">
            <span class="project-title">Android-Best-Practices</span>
            <small class="project-info">
              <a-icon type="star" />
              <span>4 star</span>
              <span>/</span>
              <a-icon type="fork" />
              <span>4 fork</span>
            </small>
            <small class="project-intro">Android最佳实践示例</small>
            <a-button
              icon="coffee"
              class="project-btn"
              shape="round"
              size="small"
            >
              访问
            </a-button>
            <span class="project-lang">JavaScript</span>
          </div>
        </a-col>
        <a-col :span="12">
          <div class="project-card">
            <span class="project-title">Android-Best-Practices</span>
            <small class="project-info">
              <a-icon type="star" />
              <span>4 star</span>
              <span>/</span>
              <a-icon type="fork" />
              <span>4 fork</span>
            </small>
            <small class="project-intro">Android最佳实践示例</small>
            <a-button
              icon="coffee"
              class="project-btn"
              shape="round"
              size="small"
            >
              访问
            </a-button>
            <span class="project-lang">JavaScript</span>
          </div>
        </a-col>
      </a-row>
      <a-row :gutter="[16, 16]">
        <a-col :span="12">
          <div class="project-card">
            <span class="project-title">Android-Best-Practices</span>
            <small class="project-info">
              <a-icon type="star" />
              <span>4 star</span>
              <span>/</span>
              <a-icon type="fork" />
              <span>4 fork</span>
            </small>
            <small class="project-intro">Android最佳实践示例</small>
            <a-button
              icon="coffee"
              class="project-btn"
              shape="round"
              size="small"
            >
              访问
            </a-button>
            <span class="project-lang">JavaScript</span>
          </div>
        </a-col>
        <a-col :span="12">
          <div class="project-card">
            <span class="project-title">Android-Best-Practices</span>
            <small class="project-info">
              <a-icon type="star" />
              <span>4 star</span>
              <span>/</span>
              <a-icon type="fork" />
              <span>4 fork</span>
            </small>
            <small class="project-intro">Android最佳实践示例</small>
            <a-button
              icon="coffee"
              class="project-btn"
              shape="round"
              size="small"
            >
              访问
            </a-button>
            <span class="project-lang">JavaScript</span>
          </div>
        </a-col>
      </a-row>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      loading: false
    }
  }
}
</script>
<style lang="scss" scoped>
.home-container {
  background-color: #f1f3f4;
  .header-box {
    background-color: #f9f9f9;
    padding: 20px;
    h1 {
      font-size: 30px;
      color: #000;
      margin-bottom: 0;
    }
    small {
      letter-spacing: 2px;
      color: #a0a0a0;
      font-size: 13px;
    }
  }
  .content-box {
    padding: 20px;
    min-height: 100vh;
    .project-card {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: #23b7e5;
      color: #dcf2f8;
      padding: 15px;
      border-radius: 4px;
      position: relative;
      .project-title {
        font-size: 24px;
      }
      .project-info {
        margin: 10px;
        span{
          margin: 0 5px;
        }
      }
      .project-intro {
        margin-bottom: 10px;
      }
      .project-btn {
      }
      .project-lang {
        position: absolute;
        font-size: 20px;
        color: rgba(255, 255, 255, 0.5);
        bottom: 5px;
        right: 10px;
      }
    }
  }
}
</style>
